package tack15;

import javax.swing.*;
import java.awt.*;

/**
 * 存款界面
 */
public class SavePanel extends JPanel {
    //字体类型颜色大小
    private Font font = new Font("黑体",Font.PLAIN,30);
    //输入框
    private JTextField jTextField = new JTextField();
    //加入图片
    private ImageIcon sureImg  = new ImageIcon("atmlogo/buttonSure.jpg");
    private ImageIcon sureImg1 = new ImageIcon("atmlogo/buttonOff.jpg");
    //提示字体
    private JLabel amountEntered = new JLabel("请输入金额");


    //图片调用new对象
    private JButton setBounds = new JButton(sureImg);
    private JButton setBounds1 = new JButton(sureImg1);

    public  SavePanel(){
        this.setLayout(null);
        //按钮
        setBounds.setBounds(660,240,150,50);
        setBounds1.setBounds(660,340,150,50);
        //输入框
        jTextField.setBounds(470,240,150,50);
        //提示语句
        amountEntered.setBounds(250,240,150,50);
        amountEntered.setFont(font);
        amountEntered.setForeground(Color.cyan);




        this.add(amountEntered);
        this.add(jTextField);
        this.add(setBounds);
        this.add(setBounds1);



        this.setOpaque(false);

    }



}
